<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%
	request.setAttribute("path", request.getContextPath());
%>
<script type="text/javascript">
$(function(){
	common.ajaxQuery("${root}/stock/history/list");
});

</script>
<jsp:include page="../base/master_js.jsp"></jsp:include>
<form class="form-horizontal" id="queryForm" role="form">
	<input name="orderName" value="" type="hidden">
	<input name="requestType" type="hidden" value="${param.requestType}">
	<table class="table table-hover">
		<tr>
			<th>大区:</th>
			<td>
				<select id="firstOrg" name="firstOrg" class="input-xlarge" onchange="firstOrgChange(this,'secondOrg',true)">
					<option value=""></option>
					<c:forEach var="item" items="${firstOrgs}">
						<option value="${item.id }"><c:out value="${item.name }"/></option>
					</c:forEach>
				</select>
			</td>
			<th>办事处:</th>
			<td colspan="3">
				<select id="secondOrg" name="secondOrg" class="input-xlarge" >
				</select>
			</td>
		</tr>
		<tr>
			<th>申请人:</th>
			<td><input type="text" class="input-xlarge" name="requestUser" id="requestUser" value=""/></td>
			<th>申请日期:</th>
			<td colspan="3">
				<input type="text" data-date="${today}"  data-date-format="yyyy-mm-dd" class="input-medium datepicker" id="startDate" name="startDate" >
                  	&nbsp;&nbsp;~&nbsp;&nbsp;
               <input type="text" data-date="${today}"  data-date-format="yyyy-mm-dd" class="input-medium datepicker" id="endDate" name="endDate" >
			</td>
		</tr>
		<tr>
			<th>申请单号:</th>
			<td><input type="text" class="input-xlarge" name="manualId"/></td>
			<th>配件编码:</th>
			<td>
				<input type="text" class="input-xlarge" name="productPartId"/>
			</td>
			<th>配件名称:</th>
			<td>
				<input type="text" class="input-xlarge" name="productPartName"/>
			</td>
		</tr>
	</table>

	<div class="form-actions text-center">
		   <button type="button" class="btn btn-primary" onclick="common.ajaxQuery('${root}/stock/history/list')">查询</button>
	 </div>
</form>
<div class="table-responsive">
<table class="table table-striped table-bordered">
	<thead>
		<tr >
			<th class="col-sm-1 text-center">申请单号</th>
			<th class="col-sm-1 text-center">库存类型</th>
			<th class="col-sm-1 text-center">网点</th>
			<th class="col-sm-1 text-center">配件编码</th>
			<th class="col-sm-2 text-center">配件名称</th>
			<th class="col-sm-2 text-center">申请数量</th>
			<th class="col-sm-1 text-center">申请人</th>
			<th class="col-sm-1 text-center">申请时间</th>
			<th class="col-sm-1 text-center">审批人</th>
			<th class="col-sm-1 text-center">审批时间</th>
		</tr>
	</thead>
	<tbody id="dataList">
	</tbody>
</table>
</div>

